package com.ekin.attendance.model.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Ekin
 * 请假表单对象
 */
@Schema(description = "请假表单对象")
@Data
public class LeaveForm {
    @Schema(description = "请假ID",example = "1")
    private Long id;

    @Schema(description = "请假单号",example = "")
    private String applyerNumber;

    @Schema(description = "请假人",example = "")
    private String applyer;

    @Schema(description="部门ID")
    private String deptId;

    @Schema(description = "请假类型")
    private String leaveStyle;

    @Schema(description = "请假原因")
    private String leaveReason;

    @Schema(description = "请假总天数")
    private String leaveDays;

    @Schema(description = "请假开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "请假结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
